﻿using Newtonsoft.Json;

namespace ZilLion.Service.WeChatMall.Domain.Entitys
{
    public class ShopEntity
    {
        [JsonProperty("shopId")]
        public long ShopId { get; set; }

        [JsonProperty("name")]
        public string Name { get; set; }


        [JsonProperty("description")]
        public string Description { get; set; }


        [JsonProperty("deliveryTime")]
        public int DeliveryTime { get; set; }

        [JsonProperty("score")]
        public float Score { get; set; }

        [JsonProperty("serviceScore")]
        public float ServiceScore { get; set; }

        [JsonProperty("foodScore")]
        public float FoodScore { get; set; }

        [JsonProperty("rankRate")]
        public float RankRate { get; set; }

        [JsonProperty("minPrice")]
        public int MinPrice { get; set; }

        [JsonProperty("deliveryPrice")]
        public int DeliveryPrice { get; set; }

        [JsonProperty("ratingCount")]
        public int RatingCount { get; set; }

        [JsonProperty("sellCount")]
        public int SellCount { get; set; }

        [JsonProperty("bulletin")]
        public string Bulletin { get; set; }

        [JsonProperty("supports")]
        public Supportentity[] Supports { get; set; }

        [JsonProperty("avatar")]
        public string Avatar { get; set; }

        [JsonProperty("pics")]
        public string[] Pics { get; set; }

        [JsonProperty("infos")]
        public string[] Infos { get; set; }

        #region 非mock 字段

        /// <summary>
        ///     门店地址 经度,纬度
        /// </summary>
        [JsonProperty("location")]
        public string Location { get; set; }

        /// <summary>
        ///     所在城市省份证前缀
        /// </summary>
        [JsonProperty("adcode")]
        public string Adcode { get; set; }


        /// <summary>
        ///     address 地标地址（地图定位地址）
        /// </summary>
        [JsonProperty("gpsaddress")]
        public string GpsAddress { get; set; }

        /// <summary>
        ///     shaddress 送货地址(用户手输的详细地址)
        /// </summary>
        [JsonProperty("detailaddress")]
        public string DetailAddress { get; set; }

        #endregion
    }

    public class Supportentity
    {
        [JsonProperty("type")]
        public int Type { get; set; }

        [JsonProperty("description")]
        public string Description { get; set; }
    }
}